var skill_list=[]
class demon_head{
    constructor(top,left){
        this.top = top;
        this.left = left-20;
        this.width = 183;
        this.height = 159;
        this.atk=0;
        this.animate_index=0;
        this.xspeed=0
        this.yspeed=0
        this.animate=[document.getElementById("demon_hand0"),
                    document.getElementById("demon_hand0"),
                    document.getElementById("demon_hand0"),
                    document.getElementById("demon_hand1"),
                    document.getElementById("demon_hand2"),
                    document.getElementById("demon_hand3"),
                    document.getElementById("demon_hand4"),
                    document.getElementById("demon_hand5"),
                    document.getElementById("demon_hand6"),
                    document.getElementById("demon_hand7"),
                    document.getElementById("demon_hand8"),
                    document.getElementById("demon_hand9"),
                    document.getElementById("demon_hand10"),
                    document.getElementById("demon_hand11"),]
        this.distroy=false
        this.dom=this.animate[this.animate_index]
    }
        

    run(){
            if(this.animate_index>=this.animate.length){
                this.distroy=true
            }
            if(this.animate_index>=2&&this.animate_index<=8){
                this.atk=5
            }else{
                this.atk=0
            }
            this.dom=this.animate[this.animate_index]
            this.animate_index++
    }
}